package org.custom.spring.boot.transaction.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * transaction表对应实体类
 *
 * @author LiKun
 * @date 2021/9/10 12:51
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("transaction")
public class Transaction {
    @TableId
    private String id;

    private String name;

    public static Transaction getInstance(String data) {
        return Transaction.builder().id(data).name(data).build();
    }
}
